home *** CD-ROM | disk | FTP | other *** search
/ 1,000+ Great Games / 1_1000 Games.iso / DOSGAMES / BOGGLE.ZIP / SOURCE.ZIP / TIMER.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-03  |  798 b   |  38 lines

  1. #ifndef  TIMER_H
  2. #define  TIMER_H
  3. #define  ID_TIMER     200 
  4.  
  5. class TBogTimer;
  6.  
  7. #include "bogwin.hpp"
  8. #include <islider.hpp>
  9. #include <itimer.hpp>
  10. #include <iedithdr.hpp>
  11.       
  12. #include  <stdio.h>                 
  13.  
  14. class TBogTimer;
  15.  
  16. class TBogTimer : public IProgressIndicator, public ITimer, public IEditHandler
  17. {
  18.    private:
  19.      long          timerDuration;
  20.      TBogWindow*   game;
  21.      Sound*        psound;
  22.                     
  23.    protected:
  24.       void TimerHandler();
  25.       virtual Boolean edit(IControlEvent& event );
  26.  
  27.    public:
  28.       void resetTimer();
  29.       void startTimer();
  30.       void stopTimer();
  31.       TBogTimer(unsigned long WindowID, IWindow *Parent, 
  32.                 TBogWindow* Game, Sound* pSound);
  33.       ~TBogTimer();
  34. };        
  35.  
  36. #endif
  37.  
  38.